home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UNIXTOOL / GNU / BISON / BISON~ / bsn_simple < prev    next >
Text File  |  1994-10-12  |  17KB  |  678 lines

  1. /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  2. #line 3 "bsn/simple"
  3.  
  4. /* Skeleton output parser for bison,
  5.    Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
  6.  
  7.    This program is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation; either version 1, or (at your option)
  10.    any later version.
  11.  
  12.    This program is distributed in the hope that it will be useful,
  13.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.    GNU General Public License for more details.
  16.  
  17.    You should have received a copy of the GNU General Public License
  18.    along with this program; if not, write to the Free Software
  19.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21.  
  22. #ifndef alloca
  23. #ifdef __GNUC__
  24. #define alloca __builtin_alloca
  25. #else /* not GNU C.  */
  26. #ifdef __riscos
  27. extern void *alloca(size_t);
  28. #else
  29. #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
  30. #include <alloca.h>
  31. #else /* not sparc */
  32. #if defined (MSDOS) && !defined (__TURBOC__)
  33. #include <malloc.h>
  34. #else /* not MSDOS, or __TURBOC__ */
  35. #if defined(_AIX)
  36. #include <malloc.h>
  37. /* #pragma alloca */
  38. #else /* not MSDOS, __TURBOC__, or _AIX */
  39. #ifdef __hpux
  40. #ifdef __cplusplus
  41. extern "C" {
  42. void *alloca (unsigned int);
  43. };
  44. #else /* not __cplusplus */
  45. void *alloca ();
  46. #endif /* not __cplusplus */
  47. #endif /* __hpux */
  48. #endif /* not _AIX */
  49. #endif /* not MSDOS, or __TURBOC__ */
  50. #endif /* not sparc.  */
  51. #endif /* not RISC OS */
  52. #endif /* not GNU C.  */
  53. #endif /* alloca not defined.  */
  54.  
  55. /* This is the parser code that is written into each bison parser
  56.   when the %semantic_parser declaration is not specified in the grammar.
  57.   It was written by Richard Stallman by simplifying the hairy parser
  58.   used when %semantic_parser is specified.  */
  59.  
  60. /* Note: there must be only one dollar sign in this file.
  61.    It is replaced by the list of actions, each action
  62.    as one case of the switch.  */
  63.  
  64. #define yyerrok        (yyerrstatus = 0)
  65. #define yyclearin    (yychar = YYEMPTY)
  66. #define YYEMPTY        -2
  67. #define YYEOF        0
  68. #define YYACCEPT    return(0)
  69. #define YYABORT     return(1)
  70. #define YYERROR        goto yyerrlab1
  71. /* Like YYERROR except do call yyerror.
  72.    This remains here temporarily to ease the
  73.    transition to the new meaning of YYERROR, for GCC.
  74.    Once GCC version 2 has supplanted version 1, this can go.  */
  75. #define YYFAIL        goto yyerrlab
  76. #define YYRECOVERING()  (!!yyerrstatus)
  77. #define YYBACKUP(token, value) \
  78. do                                \
  79.   if (yychar == YYEMPTY && yylen == 1)                \
  80.     { yychar = (token), yylval = (value);            \
  81.       yychar1 = YYTRANSLATE (yychar);                \
  82.       YYPOPSTACK;                        \
  83.       goto yybackup;                        \
  84.     }                                \
  85.   else                                \
  86.     { yyerror ("syntax error: cannot back up"); YYERROR; }    \
  87. while (0)
  88.  
  89. #define YYTERROR    1
  90. #define YYERRCODE    256
  91.  
  92. #ifndef YYPURE
  93. #define YYLEX        yylex()
  94. #endif
  95.  
  96. #ifdef YYPURE
  97. #ifdef YYLSP_NEEDED
  98. #define YYLEX        yylex(&yylval, &yylloc)
  99. #else
  100. #define YYLEX        yylex(&yylval)
  101. #endif
  102. #endif
  103.  
  104. /* If nonreentrant, generate the variables here */
  105.  
  106. #ifndef YYPURE
  107.  
  108. int    yychar;            /*  the lookahead symbol        */
  109. YYSTYPE    yylval;            /*  the semantic value of the        */
  110.                 /*  lookahead symbol            */
  111.  
  112. #ifdef YYLSP_NEEDED
  113. YYLTYPE yylloc;            /*  location data for the lookahead    */
  114.                 /*  symbol                */
  115. #endif
  116.  
  117. int yynerrs;            /*  number of parse errors so far       */
  118. #endif  /* not YYPURE */
  119.  
  120. #if YYDEBUG != 0
  121. int yydebug;            /*  nonzero means print parse trace    */
  122. /* Since this is uninitialized, it does not stop multiple parsers
  123.    from coexisting.  */
  124. #endif
  125.  
  126. /*  YYINITDEPTH indicates the initial size of the parser's stacks    */
  127.  
  128. #ifndef    YYINITDEPTH
  129. #define YYINITDEPTH 200
  130. #endif
  131.  
  132. #ifdef __riscos
  133. #ifndef YYMAXDEPTH
  134. #define YYMAXDEPTH 0
  135. #endif
  136. #ifndef __GNUC__
  137. #define __GNUC__ 0
  138. #endif
  139. #endif
  140.  
  141. /*  YYMAXDEPTH is the maximum size the stacks can grow to
  142.     (effective only if the built-in stack extension method is used).  */
  143.  
  144. #if YYMAXDEPTH == 0
  145. #undef YYMAXDEPTH
  146. #endif
  147.  
  148. #ifndef YYMAXDEPTH
  149. #define YYMAXDEPTH 10000
  150. #endif
  151.  
  152. /* Prevent warning if -Wstrict-prototypes.  */
  153. #ifdef __GNUC__
  154. int yyparse (void);
  155. #endif
  156.  
  157. #if __GNUC__ > 1        /* GNU C and GNU C++ define this.  */
  158. #define __yy_bcopy(FROM,TO,COUNT)    __builtin_memcpy(TO,FROM,COUNT)
  159. #else                /* not GNU C or C++ */
  160. #ifndef __cplusplus
  161.  
  162. /* This is the most reliable way to avoid incompatibilities
  163.    in available built-in functions on various systems.  */
  164. #ifdef __STDC__
  165. static void
  166. __yy_bcopy (char *from, char *to, int count)
  167. #else /* __STDC__ */
  168. static void
  169. __yy_bcopy (from, to, count)
  170.      char *from;
  171.      char *to;
  172.      int count;
  173. #endif /* __STDC__ */
  174. {
  175.   register char *f = from;
  176.   register char *t = to;
  177.   register int i = count;
  178.  
  179.   while (i-- > 0)
  180.     *t++ = *f++;
  181. }
  182.  
  183. #else /* __cplusplus */
  184.  
  185. /* This is the most reliable way to avoid incompatibilities
  186.    in available built-in functions on various systems.  */
  187. static void
  188. __yy_bcopy (char *from, char *to, int count)
  189. {
  190.   register char *f = from;
  191.   register char *t = to;
  192.   register int i = count;
  193.  
  194.   while (i-- > 0)
  195.     *t++ = *f++;
  196. }
  197.  
  198. #endif
  199. #endif
  200.  
  201. #line 203 "bsn/simple"
  202. int
  203. yyparse()
  204. {
  205.   register int yystate;
  206.   register int yyn;
  207.   register short *yyssp;
  208.   register YYSTYPE *yyvsp;
  209.   int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  210.   int yychar1 = 0;        /*  lookahead token as an internal (translated) token number */
  211.  
  212.   short    yyssa[YYINITDEPTH];    /*  the state stack            */
  213.   YYSTYPE yyvsa[YYINITDEPTH];    /*  the semantic value stack        */
  214.  
  215.   short *yyss = yyssa;        /*  refer to the stacks thru separate pointers */
  216.   YYSTYPE *yyvs = yyvsa;    /*  to allow yyoverflow to reallocate them elsewhere */
  217.  
  218. #ifdef YYLSP_NEEDED
  219.   YYLTYPE yylsa[YYINITDEPTH];    /*  the location stack            */
  220.   YYLTYPE *yyls = yylsa;
  221.   YYLTYPE *yylsp;
  222.  
  223. #define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
  224. #else
  225. #define YYPOPSTACK   (yyvsp--, yyssp--)
  226. #endif
  227.  
  228.   int yystacksize = YYINITDEPTH;
  229.  
  230. #ifdef YYPURE
  231.   int yychar;
  232.   YYSTYPE yylval;
  233.   int yynerrs;
  234. #ifdef YYLSP_NEEDED
  235.   YYLTYPE yylloc;
  236. #endif
  237. #endif
  238.  
  239.   YYSTYPE yyval;        /*  the variable used to return        */
  240.                 /*  semantic values from the action    */
  241.                 /*  routines                */
  242.  
  243.   int yylen;
  244.  
  245. #if YYDEBUG != 0
  246.   if (yydebug)
  247.     fprintf(stderr, "Starting parse\n");
  248. #endif
  249.  
  250.   yystate = 0;
  251.   yyerrstatus = 0;
  252.   yynerrs = 0;
  253.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  254.  
  255.   /* Initialize stack pointers.
  256.      Waste one element of value and location stack
  257.      so that they stay on the same level as the state stack.
  258.      The wasted elements are never initialized.  */
  259.  
  260.   yyssp = yyss - 1;
  261.   yyvsp = yyvs;
  262. #ifdef YYLSP_NEEDED
  263.   yylsp = yyls;
  264. #endif
  265.  
  266. /* Push a new state, which is found in  yystate  .  */
  267. /* In all cases, when you get here, the value and location stacks
  268.    have just been pushed. so pushing a state here evens the stacks.  */
  269. yynewstate:
  270.  
  271.   *++yyssp = yystate;
  272.  
  273.   if (yyssp >= yyss + yystacksize - 1)
  274.     {
  275.       /* Give user a chance to reallocate the stack */
  276.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  277.       YYSTYPE *yyvs1 = yyvs;
  278.       short *yyss1 = yyss;
  279. #ifdef YYLSP_NEEDED
  280.       YYLTYPE *yyls1 = yyls;
  281. #endif
  282.  
  283.       /* Get the current used size of the three stacks, in elements.  */
  284.       int size = yyssp - yyss + 1;
  285.  
  286. #ifdef yyoverflow
  287.       /* Each stack pointer address is followed by the size of
  288.      the data in use in that stack, in bytes.  */
  289. #ifdef YYLSP_NEEDED
  290.       /* This used to be a conditional around just the two extra args,
  291.      but that might be undefined if yyoverflow is a macro.  */
  292.       yyoverflow("parser stack overflow",
  293.          &yyss1, size * sizeof (*yyssp),
  294.          &yyvs1, size * sizeof (*yyvsp),
  295.          &yyls1, size * sizeof (*yylsp),
  296.          &yystacksize);
  297. #else
  298.       yyoverflow("parser stack overflow",
  299.          &yyss1, size * sizeof (*yyssp),
  300.          &yyvs1, size * sizeof (*yyvsp),
  301.          &yystacksize);
  302. #endif
  303.  
  304.       yyss = yyss1; yyvs = yyvs1;
  305. #ifdef YYLSP_NEEDED
  306.       yyls = yyls1;
  307. #endif
  308. #else /* no yyoverflow */
  309.       /* Extend the stack our own way.  */
  310.       if (yystacksize >= YYMAXDEPTH)
  311.     {
  312.       yyerror("parser stack overflow");
  313.       return 2;
  314.     }
  315.       yystacksize *= 2;
  316.       if (yystacksize > YYMAXDEPTH)
  317.     yystacksize = YYMAXDEPTH;
  318.       yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
  319.       __yy_bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
  320.       yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
  321.       __yy_bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
  322. #ifdef YYLSP_NEEDED
  323.       yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
  324.       __yy_bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
  325. #endif
  326. #endif /* no yyoverflow */
  327.  
  328.       yyssp = yyss + size - 1;
  329.       yyvsp = yyvs + size - 1;
  330. #ifdef YYLSP_NEEDED
  331.       yylsp = yyls + size - 1;
  332. #endif
  333.  
  334. #if YYDEBUG != 0
  335.       if (yydebug)
  336.     fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  337. #endif
  338.  
  339.       if (yyssp >= yyss + yystacksize - 1)
  340.     YYABORT;
  341.     }
  342.  
  343. #if YYDEBUG != 0
  344.   if (yydebug)
  345.     fprintf(stderr, "Entering state %d\n", yystate);
  346. #endif
  347.  
  348.   goto yybackup;
  349.  yybackup:
  350.  
  351. /* Do appropriate processing given the current state.  */
  352. /* Read a lookahead token if we need one and don't already have one.  */
  353. /* yyresume: */
  354.  
  355.   /* First try to decide what to do without reference to lookahead token.  */
  356.  
  357.   yyn = yypact[yystate];
  358.   if (yyn == YYFLAG)
  359.     goto yydefault;
  360.  
  361.   /* Not known => get a lookahead token if don't already have one.  */
  362.  
  363.   /* yychar is either YYEMPTY or YYEOF
  364.      or a valid token in external form.  */
  365.  
  366.   if (yychar == YYEMPTY)
  367.     {
  368. #if YYDEBUG != 0
  369.       if (yydebug)
  370.     fprintf(stderr, "Reading a token: ");
  371. #endif
  372.       yychar = YYLEX;
  373.     }
  374.  
  375.   /* Convert token to internal form (in yychar1) for indexing tables with */
  376.  
  377.   if (yychar <= 0)        /* This means end of input. */
  378.     {
  379.       yychar1 = 0;
  380.       yychar = YYEOF;        /* Don't call YYLEX any more */
  381.  
  382. #if YYDEBUG != 0
  383.       if (yydebug)
  384.     fprintf(stderr, "Now at end of input.\n");
  385. #endif
  386.     }
  387.   else
  388.     {
  389.       yychar1 = YYTRANSLATE(yychar);
  390.  
  391. #if YYDEBUG != 0
  392.       if (yydebug)
  393.     {
  394.       fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  395.       /* Give the individual parser a way to print the precise meaning
  396.          of a token, for further debugging info.  */
  397. #ifdef YYPRINT
  398.       YYPRINT (stderr, yychar, yylval);
  399. #endif
  400.       fprintf (stderr, ")\n");
  401.     }
  402. #endif
  403.     }
  404.  
  405.   yyn += yychar1;
  406.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  407.     goto yydefault;
  408.  
  409.   yyn = yytable[yyn];
  410.  
  411.   /* yyn is what to do for this token type in this state.
  412.      Negative => reduce, -yyn is rule number.
  413.      Positive => shift, yyn is new state.
  414.        New state is final state => don't bother to shift,
  415.        just return success.
  416.      0, or most negative number => error.  */
  417.  
  418.   if (yyn < 0)
  419.     {
  420.       if (yyn == YYFLAG)
  421.     goto yyerrlab;
  422.       yyn = -yyn;
  423.       goto yyreduce;
  424.     }
  425.   else if (yyn == 0)
  426.     goto yyerrlab;
  427.  
  428.   if (yyn == YYFINAL)
  429.     YYACCEPT;
  430.  
  431.   /* Shift the lookahead token.  */
  432.  
  433. #if YYDEBUG != 0
  434.   if (yydebug)
  435.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  436. #endif
  437.  
  438.   /* Discard the token being shifted unless it is eof.  */
  439.   if (yychar != YYEOF)
  440.     yychar = YYEMPTY;
  441.  
  442.   *++yyvsp = yylval;
  443. #ifdef YYLSP_NEEDED
  444.   *++yylsp = yylloc;
  445. #endif
  446.  
  447.   /* count tokens shifted since error; after three, turn off error status.  */
  448.   if (yyerrstatus) yyerrstatus--;
  449.  
  450.   yystate = yyn;
  451.   goto yynewstate;
  452.  
  453. /* Do the default action for the current state.  */
  454. yydefault:
  455.  
  456.   yyn = yydefact[yystate];
  457.   if (yyn == 0)
  458.     goto yyerrlab;
  459.  
  460. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  461. yyreduce:
  462.   yylen = yyr2[yyn];
  463.   if (yylen > 0)
  464.     yyval = yyvsp[1-yylen]; /* implement default value of the action */
  465.  
  466. #if YYDEBUG != 0
  467.   if (yydebug)
  468.     {
  469.       int i;
  470.  
  471.       fprintf (stderr, "Reducing via rule %d (line %d), ",
  472.            yyn, yyrline[yyn]);
  473.  
  474.       /* Print the symbols being reduced, and their result.  */
  475.       for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  476.     fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  477.       fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  478.     }
  479. #endif
  480.  
  481. $   /* the action file gets copied in in place of this dollarsign */
  482. #line 484 "bsn/simple"
  483.  
  484.   yyvsp -= yylen;
  485.   yyssp -= yylen;
  486. #ifdef YYLSP_NEEDED
  487.   yylsp -= yylen;
  488. #endif
  489.  
  490. #if YYDEBUG != 0
  491.   if (yydebug)
  492.     {
  493.       short *ssp1 = yyss - 1;
  494.       fprintf (stderr, "state stack now");
  495.       while (ssp1 != yyssp)
  496.     fprintf (stderr, " %d", *++ssp1);
  497.       fprintf (stderr, "\n");
  498.     }
  499. #endif
  500.  
  501.   *++yyvsp = yyval;
  502.  
  503. #ifdef YYLSP_NEEDED
  504.   yylsp++;
  505.   if (yylen == 0)
  506.     {
  507.       yylsp->first_line = yylloc.first_line;
  508.       yylsp->first_column = yylloc.first_column;
  509.       yylsp->last_line = (yylsp-1)->last_line;
  510.       yylsp->last_column = (yylsp-1)->last_column;
  511.       yylsp->text = 0;
  512.     }
  513.   else
  514.     {
  515.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  516.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  517.     }
  518. #endif
  519.  
  520.   /* Now "shift" the result of the reduction.
  521.      Determine what state that goes to,
  522.      based on the state we popped back to
  523.      and the rule number reduced by.  */
  524.  
  525.   yyn = yyr1[yyn];
  526.  
  527.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  528.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  529.     yystate = yytable[yystate];
  530.   else
  531.     yystate = yydefgoto[yyn - YYNTBASE];
  532.  
  533.   goto yynewstate;
  534.  
  535. yyerrlab:   /* here on detecting error */
  536.  
  537.   if (! yyerrstatus)
  538.     /* If not already recovering from an error, report this error.  */
  539.     {
  540.       ++yynerrs;
  541.  
  542. #ifdef YYERROR_VERBOSE
  543.       yyn = yypact[yystate];
  544.  
  545.       if (yyn > YYFLAG && yyn < YYLAST)
  546.     {
  547.       int size = 0;
  548.       char *msg;
  549.       int x, count;
  550.  
  551.       count = 0;
  552.       /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
  553.       for (x = (yyn < 0 ? -yyn : 0);
  554.            x < (sizeof(yytname) / sizeof(char *)); x++)
  555.         if (yycheck[x + yyn] == x)
  556.           size += strlen(yytname[x]) + 15, count++;
  557.       msg = (char *) malloc(size + 15);
  558.       if (msg != 0)
  559.         {
  560.           strcpy(msg, "parse error");
  561.  
  562.           if (count < 5)
  563.         {
  564.           count = 0;
  565.           for (x = (yyn < 0 ? -yyn : 0);
  566.                x < (sizeof(yytname) / sizeof(char *)); x++)
  567.             if (yycheck[x + yyn] == x)
  568.               {
  569.             strcat(msg, count == 0 ? ", expecting `" : " or `");
  570.             strcat(msg, yytname[x]);
  571.             strcat(msg, "'");
  572.             count++;
  573.               }
  574.         }
  575.           yyerror(msg);
  576.           free(msg);
  577.         }
  578.       else
  579.         yyerror ("parse error; also virtual memory exceeded");
  580.     }
  581.       else
  582. #endif /* YYERROR_VERBOSE */
  583.     yyerror("parse error");
  584.     }
  585.  
  586.   goto yyerrlab1;
  587. yyerrlab1:   /* here on error raised explicitly by an action */
  588.  
  589.   if (yyerrstatus == 3)
  590.     {
  591.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  592.  
  593.       /* return failure if at end of input */
  594.       if (yychar == YYEOF)
  595.     YYABORT;
  596.  
  597. #if YYDEBUG != 0
  598.       if (yydebug)
  599.     fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  600. #endif
  601.  
  602.       yychar = YYEMPTY;
  603.     }
  604.  
  605.   /* Else will try to reuse lookahead token
  606.      after shifting the error token.  */
  607.  
  608.   yyerrstatus = 3;        /* Each real token shifted decrements this */
  609.  
  610.   goto yyerrhandle;
  611.  
  612. yyerrdefault:  /* current state does not do anything special for the error token. */
  613.  
  614. #if 0
  615.   /* This is wrong; only states that explicitly want error tokens
  616.      should shift them.  */
  617.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  618.   if (yyn) goto yydefault;
  619. #endif
  620.  
  621. yyerrpop:   /* pop the current state because it cannot handle the error token */
  622.  
  623.   if (yyssp == yyss) YYABORT;
  624.   yyvsp--;
  625.   yystate = *--yyssp;
  626. #ifdef YYLSP_NEEDED
  627.   yylsp--;
  628. #endif
  629.  
  630. #if YYDEBUG != 0
  631.   if (yydebug)
  632.     {
  633.       short *ssp1 = yyss - 1;
  634.       fprintf (stderr, "Error: state stack now");
  635.       while (ssp1 != yyssp)
  636.     fprintf (stderr, " %d", *++ssp1);
  637.       fprintf (stderr, "\n");
  638.     }
  639. #endif
  640.  
  641. yyerrhandle:
  642.  
  643.   yyn = yypact[yystate];
  644.   if (yyn == YYFLAG)
  645.     goto yyerrdefault;
  646.  
  647.   yyn += YYTERROR;
  648.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  649.     goto yyerrdefault;
  650.  
  651.   yyn = yytable[yyn];
  652.   if (yyn < 0)
  653.     {
  654.       if (yyn == YYFLAG)
  655.     goto yyerrpop;
  656.       yyn = -yyn;
  657.       goto yyreduce;
  658.     }
  659.   else if (yyn == 0)
  660.     goto yyerrpop;
  661.  
  662.   if (yyn == YYFINAL)
  663.     YYACCEPT;
  664.  
  665. #if YYDEBUG != 0
  666.   if (yydebug)
  667.     fprintf(stderr, "Shifting error token, ");
  668. #endif
  669.  
  670.   *++yyvsp = yylval;
  671. #ifdef YYLSP_NEEDED
  672.   *++yylsp = yylloc;
  673. #endif
  674.  
  675.   yystate = yyn;
  676.   goto yynewstate;
  677. }
  678.